{% extends  "mytest/base.html" %}



{% block mainbody %}
    <div>
        <div class="container">
            <div class="panel panel-default">
              <div class="panel-heading">
                <h3 class="panel-title">编辑</h3>
              </div>
              <div class="panel-body">
                  <!-- 表单 -->
                <form class="form-horizontal" action="/mytest/data/{{ nid }}/edit" method="POST">
                    {% csrf_token %}
                  <div class="form-group">
                    <label class="col-sm-2 control-label">标题</label>
                    <div class="col-sm-10">
                      <input type="text" class="form-control" placeholder="标题" name="title" value="{{ edit_data.title }}">
                    </div>
                  </div>
                  <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                      <button type="submit" class="btn btn-default">确定</button>
                    </div>
                  </div>
                </form>

              </div>
            </div>
        </div>
    </div>
{% endblock %}





